package com.ruoyi.mapper;

import com.ruoyi.domain.vo.GoodsEvaluateVo;
import com.ruoyi.system.domain.GoodsEvaluate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface GoodsEvaluateVoMapper {

    List<GoodsEvaluateVo> selectGoodsEvaluateListByGoodsId(@Param("goodsId") Long goodsId, @Param("pageSize") Long pageSize, @Param("offset") Long offset);

    void addGoodsEvaluate(GoodsEvaluate goodsEvaluate);

    void updateGoodsEvaluate(GoodsEvaluate goodsEvaluate);

    GoodsEvaluate getGoodsEvaluateByOrderItemId(Long orderItemId);

    void deleteGoodsEvaluateByOrderItemId(Long orderItemId);
}
